package com.ysh.service.impl;


import com.ysh.dao.OrderDao;
import com.ysh.dao.UserDao;
import com.ysh.dao.impl.OrderDaoImpl;
import com.ysh.dao.impl.UserDaoImpl;
import com.ysh.domain.Order;
import com.ysh.domain.User;
import com.ysh.service.OrderService;
import com.ysh.service.UserService;

import java.util.List;

/*
    Service 订单业务层实现类
 */
public class OrderServiceImpl implements OrderService {
    OrderDao orderDao = new OrderDaoImpl();
    /*
        添加订单
     */
    @Override
    public int addOrder(Order order) {
        return orderDao.addOrder(order);
    }

    /*
        查询订单信息
     */
    @Override
    public List<Order> findUser() {
        return orderDao.findUser();
    }
}
